default_platform(:ios)

scheme_name = "SmartEyeForDoctor-dev"

pgyer_api_key = "dec6eee78583a026fe6e3413aadc5438"
pgyer_user_key = "02bab9468172144dfc319e30599b2c8c"

platform :ios do
  lane :adhoc do
    build_number = get_build_number()
    gym(
        scheme: scheme_name,
        export_method: 'ad-hoc',
        configuration: "Release",
        output_directory:"./app",
        output_name:build_number,
        workspace: "SmartEyeForDoctor.xcworkspace"
        )
    pgyer(api_key: pgyer_api_key, user_key: pgyer_user_key)
    delete_files(file_pattern: "./app/#{build_number}.ipa")
    delete_files(file_pattern: "./app/#{build_number}.app.dSYM.zip")
  end
end

